#include "str_match.hpp"
#include <iostream>
#include <string>

int main()
{
    const char* pa = "aac";
    StrMatch<10> s(pa, strlen(pa));
    int a = 0;
    int b = 0;
    const char* str = "aacaacbxaaabbx";
    if (s.Match(str, strlen(str), a, b))
    {
        std::cout << "current_index:" << a << " match_len:" << b << '\n';
    }
    return 0;
}